package com.example.backend.model;

import com.example.backend.entity.Suggestion;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class SuggestionModel extends BaseModel {
    @JsonProperty("data")
    List<Suggestion> data;

    public SuggestionModel(int code,String result,List<Suggestion> suggestions){
        this.code=code;
        this.result=result;
        this.count=suggestions.size();
        this.data=suggestions;
    }
}
